/**
 * Author: w景洋.
 * Time: 2016/4/15 0015
 */

var cmtapp = angular.module('cmtapp', [
    'ui.router',
    'modelapp',
    'mall',
    'usercenter_app',
    'ad_serviceApp',
    'app.filter',
    'directive',
]);

cmtapp.run(
        [          '$rootScope', '$state', '$stateParams',
            function ($rootScope,   $state,   $stateParams) {
                $rootScope.$state = $state;
                $rootScope.$stateParams = $stateParams;

            }
        ]
    )
cmtapp.config(
        [          '$stateProvider', '$urlRouterProvider','$locationProvider',
            function ($stateProvider,   $urlRouterProvider,$locationProvider) {
                $urlRouterProvider
                    .otherwise('/home');
                $locationProvider.html5Mode(html5mode);
            }
        ]
    );